#include<bits/stdc++.h>
using namespace std;
#define int long long
double a, b, c, d;
double fc(double x)
{
	return a * x * x * x + b * x * x + c * x + d;
}
double l, r, x1, x2;
int s;
signed main()
{
	cin >> a >> b >> c >> d;
	for (int i = -100; i < 100; i++) {
		l = i;
		r = i + 1;
		x1 = fc(l);
		x2 = fc(r);
		if (!x1) {
			cout << fixed << setprecision(2) << l << " ";
			s++;
		}
		if (x1 * x2 < 0 ) {
			while (r - l >= 0.001) {
				double mid = (l + r) / 2 ;
				if (fc(mid) *fc(r) <= 0) {
					l = mid;
				} else {
					r = mid;
				}
				cout << fixed << setprecision(2) << r ;
				s ++;
			}
			if (s == 3) {
				break;
			}
		}
	}
	return 0;
}
